FROM daocloud.io/java:8

ENV $ZOOKEEPER_HOME /usr/local/zookeeper
ENV $PATH $PATH:$ZOOKEEPER_HOME/bin

#RUN cd /tmp #\
#	&& curl -O http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz #\
	#&& mkdir $ZOOKEEPER_HOME \
	#&& tar -zxf zookeeper-3.4.6.tar.gz -C $ZOOKEEPER_HOME \
	#&& mv $ZOOKEEPER_HOME/conf/zoo_sample.cfg $ZOOKEEPER_HOME/conf/zoo.cfg \
	#&& rm -rf /tmp/*

WORKDIR /tmp
#RUN curl -O http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz
RUN cd /tmp
CMD ["ping","127.0.0.1"]
#EXPOSE 2181
#CMD ["sh","zkServer.sh","start"]
